package InheritanceDemo;

public class admi extends Staff{
    private String department;
    public admi(String id, String name, String gender, double salary,String department){
        super(id, name, gender, salary);
        this.department = department;
    }
    public void work(){
        System.out.println("在"+ department+"从事行政工作");
    }
}
